<?php

namespace app\api\controller;

use app\common\controller\Base;
use app\common\model\ManageModel;
use app\lib\exception\BaseException;
use think\Request;
use app\common\validate\ManageValidate;

class Login extends Base
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index(Request $request)
    {
        $params = $request->param();


               (new ManageValidate())->goCheck();
               return '111e';
//        $data = $request->param();
//      //查询数据库
//      $db = new ManageModel();
//      $info = $db->where('username',$data['username'])->find();
//      if(!$info){
//          $token = \tools\jwt\Token::getToken(100);
//          dump($token);
//          $userId = \tools\jwt\Token::getUserId($token);
//          dump($userId);
////        $this->correct('',200,['token'=>$token]);
//      }
    }

}
